Skip to main content

Add blocks to "Block Showcase" CPT

Block Showcase is a custom pos type which is a total copy of Pages post type which WordPress gives user out of the box. It is created for "Blocks" QA process since the block developer works on is in isolated place and not in actual page where changes for testing purposes would not be ideal.

Each post is dedicated to one block/hero type. This makes "Blocks" testing process much faster and easier. Developer can easily find one specific block in Block Showcase CPT and look for changes/fixes in a post where block is added.

To add a block to Block Showcase CPT head over to Block Showcase section in left sidebar of worpdress site and click "Add New" (post).

Developer should add desired block from "Repeatable Blocks" section and fill each field with dummy text for testing purposes.

Naming and content filling

Each post dedicated to one block is named as such: Block - [Name of the block].

Content of the block should be added as such:

  • Pretitle field: Pretitle Here
  • Title field: Title Here
  • Content field: Content Here or longer lorem text is also acceptable
  • Button field, url text: Button Here